package ace.module.product.api.model.input;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.PositiveOrZero;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * .
 * @author Caspar
 *
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = "商品库存")
public class PmsProductStockInitOrSetInput {

  @NotNull
  @PositiveOrZero
  @Schema(title = "租户id")
  private Long tenantId;

  @NotNull
  @PositiveOrZero
  @Schema(title = "商品应用id")
  private Long pmsAppId;

  @NotNull
  @PositiveOrZero
  @Schema(title = "商品id")
  private Long productId;

  @NotEmpty
  @Schema(title = "sku库存")
  private List<PmsProductSkuStockInput> stocks;
}
